package com.jzy.gulimall.product.feign;

import com.jzy.common.utils.R;
import com.jzy.gulimall.product.feign.fallback.SeckillFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author jzy
 * @date 2020/9/24 11:25
 * 调用方熔断保护
 */
@FeignClient(value = "gulimall-seckill",fallback = SeckillFeignFallBack.class)
public interface SeckillFeignService {

    @GetMapping("/skuSeckillInfo/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);

}
